package com.bjpowernode.boss.utils;

import com.baomidou.mybatisplus.core.toolkit.IdWorker;

public class IdUtil {

    /*生成UUID作为主键值*/
    public static String buildId() {

        return IdWorker.get32UUID();

    }

    //UserNo生成
    public static String buildUserNo() {
        return "8" + IdWorker.getId();
    }

    /*生成accountNo*/
    public static String buildAccountNo(){
        //  IdWorker.getId() 雪花算法
        return "9" + IdWorker.getId();
    }


    /*密码*/
    public static String uuid(){
        return IdWorker.get32UUID();
    }
}
